<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page isErrorPage="true" %>
<c:if test="${empty exception and empty error}">
    <jsp:forward page="../errorPage.jsp">
		<jsp:param name="error" value="Wrong access to page!" />
	</jsp:forward>
</c:if>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="ISO-8859-1">
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/template.css">
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/header.css">
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/footer.css">
		<title>Error Page</title>
	</head>
	
	<body>
		<div id="body">
			<%@ include file="header.jsp" %>
		
			<%@ include file="menu.jsp" %>
			
			<div id="title">
				(Errore)&nbsp;
				<c:choose>
					<c:when test="${not empty exception}">
						<c:out value="${exception.message}" />
					</c:when>
					<c:otherwise>
						<c:out value="${error}" />
					</c:otherwise>
				</c:choose>
			</div>
			
			<div id="content">
				<c:choose>
					<c:when test="${not empty exception}">
						<c:out value="${exception.message}" />
					</c:when>
					<c:otherwise>
						<c:out value="${error}" />
					</c:otherwise>
				</c:choose>
			</div>
			
			<%@ include file="footer.jsp" %>
		</div>
	</body>
</html>